import request from "@/core/request.js";

// 企业获取自己的招聘意向
export const getGangwei = ()=> request({url:"/info/zhaopin/getGangwei"});

// 企业获取的求职列表
export const getQiuzhiList = (data) => request({url:"/info/qiuzhi/getQiuzhiList",data,method:'post'});

// 获取求职者详情
export const getQiuzhiDetail = (data) => request({url:"/info/qiuzhi/getQiuzhiOne/"+data.id});

// 收藏求职者
export const favQiuzhi = (data)=> request({url:"/fav/favQiuzhi/"+data.id});

// 取消收藏求职者
export const notFavQiuzhi = (data)=> request({url:"/fav/removeFavQiuzhi/"+data.id})

// 点击沟通
export const sessionCompany = (data)=>request({url:"/sess/companySave/" + data.id,method:'get'})

// 新增招聘信息
export const zhaopinSave = (data) => request({url:"/info/zhaopin/save",data,method:'post'})

// 编辑岗位
export const updatePost = (data) => request({url:"/info/zhaopin/edit",data,method:'post'})

// 企业获取自己的求职列表
export const getPostList = (data) => request({url:"/info/zhaopin/getMyList",data,method:'post'})

// 企业查看自己发布的招聘详情
export const getPostDetailToMine = (data) => request({url:"/info/zhaopin/getOneMy/"+data.id})

// 切换开放/关闭招聘
export const getTogglePost = (data)=> request({url:`/info/zhaopin/setIsOk/${data.id}/${data.isOk}`})

// 获取结业点评列表
export const getRemarkList = (data)=>request({url:"/comment/companyGetList",data,method:'post'})

// 获取企业操作结业点评
export const getRemarkToCompany = (data) => request({url:"/comment/companyGetDetail/" + data.id})

// 企业提交结业点评
export const remarkSubmit = (data) => request({url:"/comment/submitComment",data,method:'post'})

// 获取结业点评详情
export const getRemarkDetail = (data) => request({url:"/comment/getOne/" + data.id})

// 获取企业基本信息
export const getMyCompanyInfo = ()=> request({url:"/account/company/getMy"})

// 编辑企业基本信息
export const updateCompanyMyInfo = (data)=> request({url:"/account/company/editMy",data,method:'post'})

// 获取收藏列表
export const getQiyeFavList = (data)=> request({url:"/fav/companyGetList",method:'post',data})

// 修改个人头像
export const updateCompanyAvatar = (data) => request({url:"/account/company/editMyPicdir",data,method:'post'})

// 删除招聘者
export const removeCompany = (data) => request({url:`/info/zhaopin/remove/${data.id}`})

//个人中心统计
export const getTongji = (data) => request({url:`/account/company/getTongji`})
